<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/users', 'UserController');
    $router->resource('/keys', 'KeyController');
    $router->resource('/accounts', 'AccountController');
    $router->resource('/account_logs', 'AccountLogController');
    $router->resource('/active_codes', 'ActiveCodeController');
    $router->resource('/active_code_trans', 'ActiveCodeTranController');
    $router->resource('/recharges', 'DepositController');
    $router->resource('/withdraws', 'WithdrawController');
    $router->resource('/transfers', 'TransferController');
    $router->resource('/exchanges', 'ExchangeController');
    $router->resource('/sites', 'SiteController');
    $router->resource('/pairs', 'PairController');
    $router->resource('/sys_policy', 'SysPolicyController');
    $router->resource('/robots', 'RobotController');
    $router->resource('/positions', 'PositionController');
    $router->resource('/orders', 'OrderController');
    $router->resource('/team', 'TeamController');
    $router->resource('/recommend_rewards', 'RecommendRewardController');
    $router->resource('/group_rewards', 'GroupRewardController');
    $router->resource('/team_rewards', 'TeamRewardController');
    $router->resource('/notices', 'NoticeController');
    $router->resource('/banners', 'BannerController');
    $router->resource('/settings', 'SettingController');
    $router->resource('/feedbacks', 'FeedbackController');
});
